<?php

$con = mysql_connect( '127.0.0.1','root','123456' ) or die('连接失败！');

mysql_select_db($con);
mysql_query('set names utf8');

$sql = 'select * from student';

$result = mysql_query($sql);

